home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
ObserveTest
/
ObserveDispatch.h
< prev
next >
Wrap
Text File
|
1995-06-12
|
695b
|
25 lines
#import <objc/Object.h>
typedef struct observer_ {
int active; /* Whether or not the observer is currently active */
id anObject; /* The port on which observer is waiting for notes */
char *action; /* The action it is waiting for */
char *filter;
} observerrec;
@interface ObserveDispatch:Object
{
id observerTable; // Table of observer lists
}
- initObserver:(observerrec *)anObserver withObject:(id)anObject
forAction:(char *)anAction withFilter:(char *)aFilter;
- (int)addObserver:(id)anObject
forAction:(char *)actionList
withFilter:(char *)aFilter;
- (int)addObserver:(id)anObject
forAction:(char *)actionList;
- observerListForAction:(char *)anAction;
@end